import Mock from 'mockjs';
import homeApi from './mockServeData/home';
import user from '@/api/mockServeData/user';
import permission from '@/api/mockServeData/permission'

//定义mock请求拦截
Mock.mock('/api/home/getData',homeApi.getStatisticalData)

//定义用户列表的数据
Mock.mock('/api/user/add','post',user.createUser)
Mock.mock('/api/user/edit','post',user.updateUser)
Mock.mock('/api/user/del','post',user.deleteUser)
Mock.mock(/api\/user\/getUser/,user.getUserList)
//使用正则表达式,匹配路径

Mock.mock(/api\/permission\/getMenu/,'post',permission.getMenu)